<?
$sub_menu = "230200";
include_once("_common.php");

auth_check($auth[$sub_menu], "w");

$sql = "select * from $mw_cash[account_table] where ac_id = '$ac_id'";
$row = sql_fetch($sql);

$re = mw_cash_get_hp($mw_cash[cf_sms_return],0);
if (!$re)
    $re = $mw_cash[cf_sms_return];

$mb = get_member($row[mb_id], "mb_nick");

$content = $mw_cash[cf_sms_content];
$content = str_replace("{캐쉬}", $mw_cash[cf_cash_name], $content);
$content = str_replace("{충전수}", mw_payment_to_cash($row[ac_payment], $row[ac_tax]).$mw_cash[cf_cash_unit], $content);
$content = str_replace("{이름}", $row[ac_name], $content);
$content = str_replace("{별명}", $mb[mb_nick], $content);
$content = str_replace("{방법}", "무통장", $content);
$content = str_replace("{금액}", number_format($row[ac_payment]), $content);

$hp = $row[ac_hp];

include_once("$g4[path]/head.sub.php");
?>

<link rel="stylesheet" type="text/css" href="css/css1.css">
<script type="text/javascript" src="js/msg.js"></script>
<script type="text/javascript">
window.onload = function () {
//CWCheck(document.MsgForm);
}
</script>

<!-- action 안에 사용하시는 모듈의 파일명으로 변경해 주세요. 그대로 쓰셔도 무관합니다. -->
<table width="300" border="0" cellspacing="0" cellpadding="0">
<form name="MsgForm" method="post" action='sms_send.php'>
<input type="hidden" name="strTelList">
<tr>
	<td valign="top" align="center">

		<table width="148" border="0" cellspacing="0" cellpadding="0" height="110">
		<tr>
			<td><img src="images/sms_top.gif"></td>
		</tr>

		<tr>
			<td background="images/sms_back.gif" width="149" height="147" valign="bottom" align="center">
				<!-- 액정화면 -->
				<table width="100" border="0" cellspacing="0" cellpadding="0" class="td1">
				<tr>
					<td>
						<textarea name="strData" onChange="ChkLen()" onKeyUp="ChkLen()" style="border-color:#000000; border:solid 0; height: 90px; background-color: #9bd9ff; width: 100px; FONT-SIZE: 9pt; overflow:hidden" onChange="" onKeyUp="" rows=6 cols=22><?=$content?></textarea>
					</td>
				</tr>
				<tr>
					<td align="right" height="40">
						<input type="text" name="strDataCount" size="2" style="border-color:#000000; border:solid 0; height: 14px; width: 18px; background-color: #9bd9ff; FONT-SIZE: 9pt;" maxlength="2" value="80" readonly name="">
						/80 byte&nbsp;&nbsp;
					</td>
				</tr>
				</table>
				<!-- 액정화면 -->
			</td>
		</tr>
		<tr>
			<td valign="top">

				<!-- 특수문자를 입력하는 부분입니다. -->
				<table width="82" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td width="18"><a href="Javascript:add('■')"><img src="images/c.gif" width="19" height="19" border="0"></a></td>
					<td width="18"><a href="Javascript:add('□')"><img src="images/c1.gif" width="18" height="19" border="0"></a></td>
					<td width="18"><a href="Javascript:add('▣')"><img src="images/c2.gif" width="18" height="19" border="0"></a></td>
					<td width="18"><a href="Javascript:add('◈')"><img src="images/c3.gif" width="18" height="19" border="0"></a></td>
					<td width="18"><a href="Javascript:add('◆')"><img src="images/c4.gif" width="18" height="19" border="0"></a></td>
					<td width="18"><a href="Javascript:add('◇')"><img src="images/c5.gif" width="18" height="19" border="0"></a></td>
					<td width="18"><a href="Javascript:add('♥')"><img src="images/c6.gif" width="18" height="19" border="0"></a></td>
					<td width="18"><a href="Javascript:add('♡')"><img src="images/c7.gif" width="19" height="19" border="0"></a></td>
				</tr>
				<tr>
					<td width="18"><a href="Javascript:add('●')"><img src="images/c8.gif" width="19" height="17" border="0"></a></td>
					<td width="18"><a href="Javascript:add('○')"><img src="images/c9.gif" width="18" height="17" border="0"></a></td>
					<td width="18"><a href="Javascript:add('▲')"><img src="images/c10.gif" width="18" height="17" border="0"></a></td>
					<td width="18"><a href="Javascript:add('▼')"><img src="images/c11.gif" width="18" height="17" border="0"></a></td>
					<td width="18"><a href="Javascript:add('▶')"><img src="images/c12.gif" width="18" height="17" border="0"></a></td>
					<td width="18"><a href="Javascript:add('▷')"><img src="images/c13.gif" width="18" height="17" border="0"></a></td>
					<td width="18"><a href="Javascript:add('◀')"><img src="images/c14.gif" width="18" height="17" border="0"></a></td>
					<td width="18"><a href="Javascript:add('◁')"><img src="images/c15.gif" width="19" height="17" border="0"></a></td>
				</tr>
				<tr>
					<td width="18"><a href="Javascript:add('☎')"><img src="images/c16.gif" width="19" height="17" border="0"></a></td>
					<td width="18"><a href="Javascript:add('☏')"><img src="images/c17.gif" width="18" height="17" border="0"></a></td>
					<td width="18"><a href="Javascript:add('♠')"><img src="images/c18.gif" width="18" height="17" border="0"></a></td>
					<td width="18"><a href="Javascript:add('♤')"><img src="images/c19.gif" width="18" height="17" border="0"></a></td>
					<td width="18"><a href="Javascript:add('♣')"><img src="images/c20.gif" width="18" height="17" border="0"></a></td>
					<td width="18"><a href="Javascript:add('♧')"><img src="images/c21.gif" width="18" height="17" border="0"></a></td>
					<td width="18"><a href="Javascript:add('★')"><img src="images/c22.gif" width="18" height="17" border="0"></a></td>
					<td width="18"><a href="Javascript:add('☆')"><img src="images/c23.gif" width="19" height="17" border="0"></a></td>
				</tr>
				<tr>
					<td width="18"><a href="Javascript:add('☞')"><img src="images/c24.gif" width="19" height="17" border="0"></a></td>
					<td width="18"><a href="Javascript:add('☜')"><img src="images/c25.gif" width="18" height="17" border="0"></a></td>
					<td width="18"><a href="Javascript:add('▒')"><img src="images/c26.gif" width="18" height="17" border="0"></a></td>
					<td width="18"><a href="Javascript:add('⊙')"><img src="images/c27.gif" width="18" height="17" border="0"></a></td>
					<td width="18"><a href="Javascript:add('㈜')"><img src="images/c28.gif" width="18" height="17" border="0"></a></td>
					<td width="18"><a href="Javascript:add('№')"><img src="images/c29.gif" width="18" height="17" border="0"></a></td>
					<td width="18"><a href="Javascript:add('㉿')"><img src="images/c30.gif" width="18" height="17" border="0"></a></td>
					<td width="18"><a href="Javascript:add('♨')"><img src="images/c31.gif" width="19" height="17" border="0"></a></td>
				</tr>
				<tr>
					<td width="18"><a href="Javascript:add('™')"><img src="images/c32.gif" width="19" height="18" border="0"></a></td>
					<td width="18"><a href="Javascript:add('℡')"><img src="images/c33.gif" width="18" height="18" border="0"></a></td>
					<td width="18"><a href="Javascript:add('∑')"><img src="images/c34.gif" width="18" height="18" border="0"></a></td>
					<td width="18"><a href="Javascript:add('∏')"><img src="images/c35.gif" width="18" height="18" border="0"></a></td>
					<td width="18"><a href="Javascript:add('♬')"><img src="images/c36.gif" width="18" height="18" border="0"></a></td>
					<td width="18"><a href="Javascript:add('♪')"><img src="images/c37.gif" width="18" height="18" border="0"></a></td>
					<td width="18"><a href="Javascript:add('♩')"><img src="images/c38.gif" width="18" height="18" border="0"></a></td>
					<td width="18"><a href="Javascript:add('♭')"><img src="images/c39.gif" width="19" height="18" border="0"></a></td>
				</tr>
				</table>
				<!-- 특수문자 -->
			</td>
		</tr>
		</table>

	</td>
	<td valign="bottom" align="center">

		<table border="0" cellspacing="0" cellpadding="2">
		<tr>
			<td>
				<!--회신번호 , 예약시간-->
				<table width="150" border="0" cellspacing="0" cellpadding="0" class="td1">
				<!-- URL콜백은 추가요금이 붙습니다. 사용하고자 하시는 고객께서는 요금을 확인하시고 사용하시기 바랍니다. -->
				<!--<tr>
					<td align="center">
						URL콜백: <input type="text" name="strURL" value="http://" size="14" maxlength="100" style='border-color:#000000; FONT-SIZE: 9pt; border:solid 1; width:75px; height:18px;' value="">
					</td>
				</tr>-->
				<!-- 선택형 입력박스인 관계로 스킨에서 제외합니다. -->
				<!--<tr>
					<td align="center">
						회신자명: <input type="text" name="strCaller" size="14" maxlength="10" style='border-color:#000000; FONT-SIZE: 9pt; border:solid 1; width:75px; height:18px;' value="">
					</td>
				</tr>-->
				<tr>
					<td align="center">
						회신번호: <input type="text" name="strCallBack" maxlength="11" style='border-color:#000000; FONT-SIZE: 9pt; border:solid 1; width:75px; height:18px;' value="<?=$re?>">
					</td>
				</tr>
				<tr>
					<td align="center">
						수신번호: <input type="text" name="addCallNum" style='border-color:#000000; border:solid 1; FONT-SIZE: 9pt; width:75px; height:18px;' value="<?=mw_cash_get_hp($hp,0)?>">
					</td>
				</tr>

				</table>
				</div>
			<!--회신번호 , 예약시간-->
			</td>
		</tr>
		<tr>
			<!-- 보내기 버튼입니다. -->
			<td align="center"><input type="image" src="images/bt_send.gif" width="70" height="19" border="0"></td>
		</tr>
		</table>

	</td>
</tr>
</form>

<script type="text/javascript">
ChkLen();
</script>

<?
include_once("$g4[path]/tail.sub.php");
?>
